| LotusScript Doc | |||
| Class: LSAOrgaType |
| 07.06.99 | , | RP, Überarbeitung generierter Code aus OCard 24.03.00, RP, Introduction new value "Interface" for LSAOrgTypeCategory 13.07.00, RP, no different forms for address interface anymore |
| Property Summary |
Public
Property
Set AddressInterface As Integer |
Public
Property
Get AddressInterface As Integer |
Public
Property
Get ChangeRequests As LSAOrgaChangeRequest |
Public
Property
Set Children As LSAOrgaCollection |
Public
Property
Get Children As LSAOrgaCollection |
Public
Property
Set DeleteUnit As Integer |
Public
Property
Get DeleteUnit As Integer |
Public
Property
Set Description As String |
Public
Property
Get Description As String |
Public
Property
Set DisplayName As String |
Public
Property
Get DisplayName As String |
Public
Property
Set NotesType As String |
Public
Property
Get NotesType As String |
Public
Property
Set Subform As String |
Public
Property
Get Subform As String |
Public
Property
Get SubType As String |
Public
Property
Set SubType As String |
Public
Property
Get SyncInfo As LSASync |
Public
Property
Set TraitAssociatedUnitDescriptor As String |
Public
Property
Get TraitAssociatedUnitDescriptor As String |
Public
Property
Set ViewIcon As Integer |
Public
Property
Get ViewIcon As Integer |
| Method Summary |
Function createTypeDefinitionDoc () As NotesDocument |
Sub Delete () |
Sub New (doc As NotesDocument, AttribDisplayName As String, AttribSubtype As String, OrgaDB As NotesDatabase, OrgaLog As LSAOrgaLog, SurrogationDate As NotesDateTime, parViewAllUnits As NotesView) |
Sub Remove () |
Function Save () As Integer |
| Property Detail |
Dim OrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Set OrgaType = OrgaManager.GetTypeByName("Employee")
If not OrgaType is Nothing Then
'Set the subform for the "Employee" objects:
OrgaType.Subform = "LSCSubSkills" 'this subform was added to the design of the LSAOrga
call OrgaType.Save
Delete OrgaType
End If
call OrgaManager.PopulateAllChanges 'to have all the units' documents changed
| Subform | String | Name of the customer subform - this subform must exist in the design of your LSAOrga |
| 04.APR.2000 | gg | redesign |
Dim OrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Dim SkillSubform as String
Set OrgaType = OrgaManager.GetTypeByName("Employee")
If not OrgaType is Nothing Then
'Get the subform of the "Employee" type :
SkillSubform = OrgaType.Subform 'this is the subform we are looking for
End If
'now we can use this subform in other Types....
| Subform | String Name of the customer subform |
| 04.APR.2000 | gg | redesign |
Dim OrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Set OrgaType = OrgaManager.GetTypeByName("Newsletter")
If not OrgaType is Nothing Then
'Change the label for all "Newsletter" traits:
OrgaType.TraitAssociatedUnitDescriptor = "Send To:"
End If
call OrgaManager.PopulateAllChanges 'to have all the traits units' documents changed
| TraitAssociatedUnitDescriptor | String | Label for assigned units |
| 04.APR.2000 | gg | redesign |
| TraitAssociatedUnitDescriptor | String Label for assigned units
|
| 04.APR.2000 | gg | redesign |
Dim OrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Set OrgaType = OrgaManager.GetTypeByName("Employee")
If not OrgaType is Nothing Then
'Set the view Icon for the "Employee" objects:
OrgaType.ViewIcon = 3 'the icon with the number 3
call OrgaType.Save
Delete OrgaType
End If
call OrgaManager.PopulateAllChanges 'to have all the units' documents changed
| ViewIcon | Integer | Number of the view icon for all units of this type |
| 04.APR.2000 | gg | redesign |
Dim OrgaType as LSAOrgaType
Dim newOrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
'... newOrgaType was already created
Set OrgaType = OrgaManager.GetTypeByName("Employee")
If not OrgaType is Nothing Then
'Set the view Icon of the "Employee" to the newOrgaType:
newOrgaType.ViewIcon = OrgaType.ViewIcon 'the icon is also set to the new type
call newOrgaType.Save
Delete newOrgaType
End If
call OrgaManager.PopulateAllChanges 'to have all the units' documents changed
| ViewIcon | Integer Number of the view icon for all units of this type
|
| 04.APR.2000 | gg | redesign |
Dim OrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
'we want to set the NotesType to "Interface", for instance to set a new NotesName for the units then
Set OrgaType = OrgaManager.GetTypeByName("Employee")
If not OrgaType is Nothing Then
'Set the NotesType for the "Employee" types:
OrgaType.NotesType = "Interface" 'as this is a person type
call OrgaType.Save
Delete OrgaType
End If
call OrgaManager.PopulateAllChanges
| NotesType | String | Type of group or trait for domino directory and kind of person in LSA-Orga for all units of this type |
| 04.APR.2000 | gg | redesign |
Dim OrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Dim orgaNotesType as String
Set OrgaType = OrgaManager.GetTypeByName("Employee")
If not OrgaType is Nothing Then
'Get the NotesType for the "Employee" types:
orgaNotesType = OrgaType.NotesType
End If
| NotesType | String Type of group or trait for domino directory and kind of person in LSA-Orga for all units of this type
|
| LSAOrgaInterfaceClasses.LSAOrgaType#SetNotesType |
| LSAOrgaInterfaceClasses.LSAOrgaManager#NewUnit |
| 04.APR.2000 | gg | redesign |
| DeleteUnit | Integer | 0 = Deletion not allowed / 1 = Deletion allowed
|
| 04.APR.2000 | gg | redesign |
| DeleteUnit | Integer 0 = Deletion not allowed / 1 = Deletion allowed
|
| 04.APR.2000 | gg | redesign |
Dim OrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Set OrgaType = OrgaManager.GetTypeByName("Employee")
If not OrgaType is Nothing Then
'Set the description for the "Employee" types:
OrgaType.Description = "Set from Backend"
call OrgaType.Save
delete OrgaType
End If
| Description | String | Description of type. |
| 04.APR.2000 | gg | redesign |
Dim OrgaType as LSAOrgaType
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Dim typeDescription As String
'read the Description:
set OrgaType = OrgaManager.GetTypeByName("Employee")
If Not OrgaType Is Nothing Then
typeDescription = OrgaType.Description
Messagebox typeDescription
End If
| Description | String Description of type. |
| 04.APR.2000 | gg | redesign |
Dim OrgaType As LSAOrgaType
Dim OrgaManager As New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Set OrgaType = OrgaManager.GetTypeByName("Project Group")
If Not OrgaType Is Nothing Then
'Set the AddressInterface for the "Project Group" type:
OrgaType.AddressInterface = 1 'all new units shall have this interface
Call OrgaType.Save
Delete OrgaType
End If
call OrgaManager.PopulateAllChanges
| AddressInterface | Integer | 0 = address interface / 1 = no address interface) |
| 04.APR.2000 | gg | redesign |
Dim OrgaType As LSAOrgaType
Dim OrgaManager As New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Dim orgaAddressInterface As Variant
Set OrgaType = OrgaManager.GetTypeByName("Project Group")
If Not OrgaType Is Nothing Then
'Get the AddressInterface for the "Project Group" type:
orgaAddressInterface = Cstr(OrgaType.AddressInterface)
End If
| AddressInterface | Integer 0 = no address interface / 1 = address interface) |
| 04.APR.2000 | gg | redesign |
Dim OrgaType As LSAOrgaType
Dim OrgaManager As New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Set OrgaType = OrgaManager.GetTypeByName("Project Group")
If Not OrgaType Is Nothing Then
'Change the Display for the "Project Group" type:
OrgaType.DisplayName = "ProjectGroup" 'all new units shall "know" this typename has changed
Call OrgaType.Save
Delete OrgaType
End If
call OrgaManager.PopulateAllChanges
| DisplayName | String | Unique name of a type in the LSA-Orga database |
| 04.APR.2000 | gg | redesign |
Dim OrgaType As LSAOrgaType
Dim OrgaManager As New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Dim orgaDisplayName As String
Dim allTypeColl As LSAOrgaCollection
'read the DisplayName :
Set allTypeColl = OrgaManager.NewOrgaCollection("","OrgaType","",OrgaManager.PersonTypeS)
Set OrgaType = allTypeColl.GetFirst()
While Not OrgaType Is Nothing
Messagebox OrgaType.DisplayName
Set OrgaType = allTypeColl.GetNext()
Wend
| DisplayName | String Unique name of a type in the LSA-Orga database |
| 04.APR.2000 | gg | redesign |
Dim OrgaType As LSAOrgaType
Dim newPotentialMember As LSAOrgaType
Dim OrgaManager As New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Dim allPotentialMembers As LSAOrgaCollection
'In the type "Department" also "Project Group" shall be a potential member type.
Set OrgaType = OrgaManager.GetTypeByName("Department")
Set newPotentialMember = OrgaManager.GetTypeByName("Project Group")
If Not OrgaType Is Nothing And Not newPotentialMember Is Nothing Then
'read the existing potential member types:
Set allPotentialMembers = OrgaType.Children
Call allPotentialMembers.AddEntry(newPotentialMember)
Set OrgaType.Children = allPotentialMembers
Call OrgaType.Save
Delete OrgaType
End If
Call allPotentialMembers.deleteAll
Delete newPotentialMember
Call OrgaManager.PopulateAllChanges 'to have all the units' documents changed
| Children | LSAOrgaCollection | all new children (potential member types) of the type |
| 04.APR.2000 | gg | redesign |
Dim OrgaType As LSAOrgaType
Dim OrgaManager As New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Dim allPotentialMembers As LSAOrgaCollection
Dim allMemberNames As String
Dim aMember As LSAOrgaType
allMemberNames = ""
Set OrgaType = OrgaManager.GetTypeByName("Department")
If Not OrgaType Is Nothing Then
Set allPotentialMembers = OrgaType.Children
Set aMember = allPotentialMembers.GetFirst()
While Not aMember Is Nothing
If allMemberNames = "" Then
allMemberNames = aMember.DisplayName
Else
allMemberNames = allMemberNames + Chr(13) + aMember.DisplayName
End If
Set aMember = allPotentialMembers.GetNext() 'do not refer to the property direcly here!
Wend
Messagebox allMemberNames
End If
| Children | LSAOrgaCollection all children (potential member types) of the type |
| 04.APR.2000 | gg | redesign |
LSAOrgaType.SyncInfo.Syncdata
Dim OrgaManager As New LSAOrgaManager("", "LSAORGA", "", "LSAORGALOG")
Dim aOrgaType As LSAOrgaType
Dim aTypeName As String
aTypeName = "ImportedGroups"
Set aOrgaType = OrgaManager.NewType(aTypeName, "OrgaGroup")
'we also set Syncronization information:
Call aOrgaType.SyncInfo.SetExtSync("TestAgent","Type1",Now)
Call aOrgaType.save
Delete aOrgaType
| SyncInfo | LSASync LSASync object |
| LSAOrgaInterfaceClasses.LSASync |
| 04.APR.2000 | gg | redesign |
Dim OrgaManager as New LSAOrgaManager("","LSAORGA","","LSAORGALOG")
Dim OrgaUnit as LSAOrgaUnit
Dim SubTypeName as String
Dim allPersons as LSAOrgaCollection
'Create Collection with all units of the same subtype as a unit :
set OrgaUnit = OrgaManager.GetUnitByName("TestPerson")
if not OrgaUnit is Nothing then
SubTypeName = OrgaUnit.OrgaType.SubType
set allPersons = OrgaManager.NewOrgaCollection("",SubTypeName,"","")
End If
| Subform | String Name of the customer subform |
| 04.APR.2000 | gg | redesign |
| Method Detail |
Public Sub New(doc As NotesDocument,AttribDisplayName As String,AttribSubtype As String,OrgaDB As NotesDatabase,OrgaLog As LSAOrgaLog,SurrogationDate As NotesDateTime,parViewAllUnits As NotesView)
Public Sub Delete
Dim OrgaManager As New LSAOrgaManager("", "LSAORGA", "", "LSAORGALOG")
Dim aOrgaType As LSAOrgaType
Dim aTypeName As String
Dim success as integer
aTypeName = "ImportedGroups"
Set aOrgaType = OrgaManager.NewType(aTypeName, "OrgaGroup")
success = aOrgaType.save
Delete aOrgaType
Public Function Save As Integer
Dim OrgaManager As New LSAOrgaManager("", "LSAORGA", "", "LSAORGALOG")
Dim aOrgaType As LSAOrgaType
Dim aTypeName As String
Dim success as integer
aTypeName = "ImportedGroups"
Set aOrgaType = OrgaManager.NewType(aTypeName, "OrgaGroup")
success = aOrgaType.save
Delete aOrgaType
| Save | Integer True / False (successfull / unsuccessfull) |
| 04.APR.2000 | gg | redesign |
Public Sub Remove
Dim OrgaManager As New LSAOrgaManager("", "LSAORGA", "", "LSAORGALOG")
Dim aOrgaType As LSAOrgaType
Dim aTypeName As String
aTypeName = "ImportedGroups"
Set aOrgaType = OrgaManager.GetTypeByName(aTypeName)
call aOrgaType.remove
call OrgaManager.PopulateAllChanges
| 04.APR.2000 | gg | redesign |
Private Function createTypeDefinitionDoc As NotesDocument
| Top | LotusScript Doc |
| © Lotus Professional Services | |
| generated on : 05-Apr-01 8:39:59 AM |